package cz.tomasdvorak.cars.wicket.components.table;

import org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn;
import org.apache.wicket.model.IModel;

public class PropertyColumnCss<T> extends PropertyColumn<T> {
    private String cssClass;

    public PropertyColumnCss(String cssClass, IModel<String> displayModel, String sortProperty, String propertyExpression) {
        super(displayModel, sortProperty, propertyExpression);
        this.cssClass = cssClass;
    }

    public PropertyColumnCss(String cssClass, IModel<String> displayModel, String propertyExpression) {
        super(displayModel, propertyExpression);
        this.cssClass = cssClass;
    }

    @Override
    public String getCssClass() {
        return cssClass;
    }
}
